package com.entity;

import java.io.Serializable;

/**
 * service
 * @author 
 */
public class Service implements Serializable {
    private Integer serviceid;

    private String servicenumber;

    private Integer servicetypeid;

    private Integer servicestatusid;

    private Integer proposer;

    private Integer agent;

    private String application;

    private String idcopy;

    private String photo;

    private String purchasecopy;

    private String contractcopy;

    private String taxcopy;

    private static final long serialVersionUID = 1L;

    public Integer getServiceid() {
        return serviceid;
    }

    public void setServiceid(Integer serviceid) {
        this.serviceid = serviceid;
    }

    public String getServicenumber() {
        return servicenumber;
    }

    public void setServicenumber(String servicenumber) {
        this.servicenumber = servicenumber;
    }

    public Integer getServicetypeid() {
        return servicetypeid;
    }

    public void setServicetypeid(Integer servicetypeid) {
        this.servicetypeid = servicetypeid;
    }

    public Integer getServicestatusid() {
        return servicestatusid;
    }

    public void setServicestatusid(Integer servicestatusid) {
        this.servicestatusid = servicestatusid;
    }

    public Integer getProposer() {
        return proposer;
    }

    public void setProposer(Integer proposer) {
        this.proposer = proposer;
    }

    public Integer getAgent() {
        return agent;
    }

    public void setAgent(Integer agent) {
        this.agent = agent;
    }

    public String getApplication() {
        return application;
    }

    public void setApplication(String application) {
        this.application = application;
    }

    public String getIdcopy() {
        return idcopy;
    }

    public void setIdcopy(String idcopy) {
        this.idcopy = idcopy;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getPurchasecopy() {
        return purchasecopy;
    }

    public void setPurchasecopy(String purchasecopy) {
        this.purchasecopy = purchasecopy;
    }

    public String getContractcopy() {
        return contractcopy;
    }

    public void setContractcopy(String contractcopy) {
        this.contractcopy = contractcopy;
    }

    public String getTaxcopy() {
        return taxcopy;
    }

    public void setTaxcopy(String taxcopy) {
        this.taxcopy = taxcopy;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Service other = (Service) that;
        return (this.getServiceid() == null ? other.getServiceid() == null : this.getServiceid().equals(other.getServiceid()))
            && (this.getServicenumber() == null ? other.getServicenumber() == null : this.getServicenumber().equals(other.getServicenumber()))
            && (this.getServicetypeid() == null ? other.getServicetypeid() == null : this.getServicetypeid().equals(other.getServicetypeid()))
            && (this.getServicestatusid() == null ? other.getServicestatusid() == null : this.getServicestatusid().equals(other.getServicestatusid()))
            && (this.getProposer() == null ? other.getProposer() == null : this.getProposer().equals(other.getProposer()))
            && (this.getAgent() == null ? other.getAgent() == null : this.getAgent().equals(other.getAgent()))
            && (this.getApplication() == null ? other.getApplication() == null : this.getApplication().equals(other.getApplication()))
            && (this.getIdcopy() == null ? other.getIdcopy() == null : this.getIdcopy().equals(other.getIdcopy()))
            && (this.getPhoto() == null ? other.getPhoto() == null : this.getPhoto().equals(other.getPhoto()))
            && (this.getPurchasecopy() == null ? other.getPurchasecopy() == null : this.getPurchasecopy().equals(other.getPurchasecopy()))
            && (this.getContractcopy() == null ? other.getContractcopy() == null : this.getContractcopy().equals(other.getContractcopy()))
            && (this.getTaxcopy() == null ? other.getTaxcopy() == null : this.getTaxcopy().equals(other.getTaxcopy()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getServiceid() == null) ? 0 : getServiceid().hashCode());
        result = prime * result + ((getServicenumber() == null) ? 0 : getServicenumber().hashCode());
        result = prime * result + ((getServicetypeid() == null) ? 0 : getServicetypeid().hashCode());
        result = prime * result + ((getServicestatusid() == null) ? 0 : getServicestatusid().hashCode());
        result = prime * result + ((getProposer() == null) ? 0 : getProposer().hashCode());
        result = prime * result + ((getAgent() == null) ? 0 : getAgent().hashCode());
        result = prime * result + ((getApplication() == null) ? 0 : getApplication().hashCode());
        result = prime * result + ((getIdcopy() == null) ? 0 : getIdcopy().hashCode());
        result = prime * result + ((getPhoto() == null) ? 0 : getPhoto().hashCode());
        result = prime * result + ((getPurchasecopy() == null) ? 0 : getPurchasecopy().hashCode());
        result = prime * result + ((getContractcopy() == null) ? 0 : getContractcopy().hashCode());
        result = prime * result + ((getTaxcopy() == null) ? 0 : getTaxcopy().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", serviceid=").append(serviceid);
        sb.append(", servicenumber=").append(servicenumber);
        sb.append(", servicetypeid=").append(servicetypeid);
        sb.append(", servicestatusid=").append(servicestatusid);
        sb.append(", proposer=").append(proposer);
        sb.append(", agent=").append(agent);
        sb.append(", application=").append(application);
        sb.append(", idcopy=").append(idcopy);
        sb.append(", photo=").append(photo);
        sb.append(", purchasecopy=").append(purchasecopy);
        sb.append(", contractcopy=").append(contractcopy);
        sb.append(", taxcopy=").append(taxcopy);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}